{include file="public/header" /}
<body>
<style>
     .jminput40{width:40px;}
</style>
<div class="layui-tab" lay-filter="test1">
  <ul class="layui-tab-title">
    <li class="layui-this" lay-id="111" >添加商品分类管理</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
<div class="layui-fluid">
    <div class="layui-card" >
        <form class="layui-form" action="" id="form1" lay-filter="form1" style="padding-top:10px;">
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">名称</label>
	<div class="layui-input-block" >
		<input type="text" id="name" name="name"  autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">父ID</label>
	<div class="layui-input-block" >
		<input type="text" id="parent_id" name="parent_id"  autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="savedata">确认添加</button>
                </div>
            </div>
        </form>
        <script>
            //分组控制
        </script>
          <script>
           {php} if(session('roleid')>5){ {/php}
            $("input[name='ispublic']").parent().parent().hide();
           {php}}{/php}
        </script>
    </div>
</div>
<script>
</script>
      {include file="public/footer" /}
      <script>
			var uploadimgurl = "{:url('/comm/upload/uploadimg')}";
      </script>
      <script src="__SKIN__/js/jmzhfsconfiguploadform.js?v=1.222"></script>
      <script type="text/javascript">
            $(function () {
                  formsubmit('form1',"{$addurl}");
            });
			layui.use(['form', 'layer','element','jquery'], function(){
				var $ = layui.$
					,form = layui.form;
			});
      </script>
<style>
    /* 每列表单过多，防止窜行，缩小宽度 */
    .layui-form-label{
       padding: 9px 10px;
    }
</style> 
</body>
</html>
    </div>
  </div>
</div>
